gtk4.git
20 years agoRemove a lot of pointless g_return_if_fail() non-NULL checks.
Matthias Clasen [Wed, 15 Jun 2005 16:59:20 +0000 (16:59 +0000)]
Remove a lot of pointless g_return_if_fail() non-NULL checks.

2005-06-15  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
g_return_if_fail() non-NULL checks.

20 years agoMake make check happier
Matthias Clasen [Wed, 15 Jun 2005 06:03:54 +0000 (06:03 +0000)]
Make make check happier

20 years agoFix make check
Matthias Clasen [Wed, 15 Jun 2005 05:55:02 +0000 (05:55 +0000)]
Fix make check

20 years agoupdated by rranjan@redhat.com
Rajesh Ranjan [Wed, 15 Jun 2005 04:34:10 +0000 (04:34 +0000)]
updated by rranjan@redhat.com

20 years agoFix some docs
Matthias Clasen [Wed, 15 Jun 2005 04:20:11 +0000 (04:20 +0000)]
Fix some docs

20 years agoFix 307689
Matthias Clasen [Wed, 15 Jun 2005 03:54:10 +0000 (03:54 +0000)]
Fix 307689

20 years agoMerged from gtk-2-6:
Federico Mena Quintero [Wed, 15 Jun 2005 01:03:21 +0000 (01:03 +0000)]
Merged from gtk-2-6:

2005-06-14  Federico Mena Quintero  <federico@ximian.com>

Merged from gtk-2-6:

Fix #302087:

* gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
"selection-changed" and do the normal housekeeping even if we are
in SAVE mode and there is nothing selected.  We didn't emit that
signal if we were in SAVE mode and unselect_all() got called.
(gtk_file_chooser_default_unselect_all): Call
pending_select_paths_free() so that we cancel any asynchronous
selections.
(gtk_file_chooser_default_set_current_name): Likewise.

20 years agofile .cvsignore was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Wed, 15 Jun 2005 01:02:55 +0000 (01:02 +0000)]
file .cvsignore was initially added on branch gtk-2-6-macosx.

20 years agoMerged from gtk-2-6:
Federico Mena Quintero [Tue, 14 Jun 2005 23:30:12 +0000 (23:30 +0000)]
Merged from gtk-2-6:

2005-06-14  Federico Mena Quintero  <federico@ximian.com>

Merged from gtk-2-6:

Fixes #307640:

* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_should_respond): Oops, I broke SAVE
mode.  If the parent path is a folder, only create a subfolder if
we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
and respond.  Also, pick up the case where the user types
"dirname/" instead of "dirname".
(check_save_entry): Make the return type void.  Add some return
parameters so that we can do more thorough checking.
(gtk_file_chooser_default_get_paths): If the file part is empty
and we are in SAVE mode, return an empty selection.

20 years agoPatch for #163214 (reported by Tommi Komulainen) and fixes some other
Kristian Rietveld [Tue, 14 Jun 2005 22:26:04 +0000 (22:26 +0000)]
Patch for #163214 (reported by Tommi Komulainen) and fixes some other

2005-06-15  Kristian Rietveld  <kris@gtk.org>

Patch for #163214 (reported by Tommi Komulainen) and fixes some
other scrolling/validation related bugs along the why.

* gtk/gtktreeview.c (gtk_tree_view_size_request): run
do_validate_rows once and don't queue a size request there,
(gtk_tree_view_size_allocate): don't update vadj value without
reason, sync top_row/dy after the window sizes and adjustments
are in sync again,
(validate_visible_area): always update dy when scrolling,
manually set top_row here after changing the vadj (don't depend
on _adjustment_changed and top_row/dy sync to do this), since we
now always set top_row here correctly, we can always free
scroll_to_path at the end which avoids infinite expose loops,
(do_validate_rows): add queue_resize boolean, remove top_row/dy
sync here, we cannot do it safely at this place since the
window sizes and adjustments are out of sync,
(validate_rows), (validate_rows_handler): update call to
do_validate_rows().

20 years agoUpdates
Matthias Clasen [Tue, 14 Jun 2005 20:57:16 +0000 (20:57 +0000)]
Updates

20 years agoAdd a stub for the no-Xcursor case. (noticed by Luis Villa)
Matthias Clasen [Tue, 14 Jun 2005 20:43:20 +0000 (20:43 +0000)]
Add a stub for the no-Xcursor case. (noticed by Luis Villa)

2005-06-14  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
stub for the no-Xcursor case. (noticed by Luis Villa)

20 years agoUse named cursors for the DND cursors, the names are "dnd-none",
Matthias Clasen [Tue, 14 Jun 2005 19:58:10 +0000 (19:58 +0000)]
Use named cursors for the DND cursors, the names are "dnd-none",

2005-06-14  Matthias Clasen  <mclasen@redhat.com>

Use named cursors for the DND cursors, the names are "dnd-none",
"dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
cursor instead of cursor+window when possible. This saves
roundtrips during the drag operation, and makes translucent icons
possible.

* gtk/gtkdndcursors.h: New file, containing inlined pixbufs
for the default dnd cursors.

* gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
used during the drag here, also store the icon pixbuf here.

* gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
switch the default cursors from xbm to inlined pixbufs.

* gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
GtkDragSourceInfo as well, since it has to composite the
drag-specific cursors. The cursors combined from the image of
the themed cursor and the icon_pixbuf stored in the info.

* gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
icon if there is an icon_pixbuf, which will be composited into
the cursor later.

* gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
the pixbuf in the info struct for later compositing into the
cursor instead of creating an icon window.

* gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
RGBA cursor for the drag, and need to display the cancel
animation, construct the icon window here.

* gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
drag-specific cursors and the icon_pixbuf when done with
the drag.

20 years agoUse a named cursor with the name "color-picker", when available.
Matthias Clasen [Tue, 14 Jun 2005 17:16:15 +0000 (17:16 +0000)]
Use a named cursor with the name "color-picker", when available.

2005-06-14  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
with the name "color-picker", when available.

20 years agoForgotten file
Matthias Clasen [Tue, 14 Jun 2005 16:05:52 +0000 (16:05 +0000)]
Forgotten file

20 years agoNew functions to construct named cursors and to get the image used for a
Matthias Clasen [Tue, 14 Jun 2005 15:10:13 +0000 (15:10 +0000)]
New functions to construct named cursors and to get the image used for a

2005-06-14  Matthias Clasen  <mclasen@redhat.com>

* gdk/gdk.symbols:
* gdk/gdkcursor.h:
* gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
(gdk_cursor_new_from_name): New functions to construct named
cursors and to get the image used for a cursor.

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Tue, 14 Jun 2005 09:12:06 +0000 (09:12 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agofile Makefile.am was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file Makefile.am was initially added on branch gtk-2-6-macosx.

20 years agofile gdkdisplay-macosx.h was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkdisplay-macosx.h was initially added on branch gtk-2-6-macosx.

20 years agofile gdkdisplay-macosx.m was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkdisplay-macosx.m was initially added on branch gtk-2-6-macosx.

20 years agofile gdkdrawable-macosx.h was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkdrawable-macosx.h was initially added on branch gtk-2-6-macosx.

20 years agofile gdkevents-macosx.c was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkevents-macosx.c was initially added on branch gtk-2-6-macosx.

20 years agofile gdkevents-macosx.m was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkevents-macosx.m was initially added on branch gtk-2-6-macosx.

20 years agofile gdkgc-macosx.m was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkgc-macosx.m was initially added on branch gtk-2-6-macosx.

20 years agofile gdkmacosx.h was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkmacosx.h was initially added on branch gtk-2-6-macosx.

20 years agofile gdkmain-macosx.c was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkmain-macosx.c was initially added on branch gtk-2-6-macosx.

20 years agofile gdknsview-macosx.m was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdknsview-macosx.m was initially added on branch gtk-2-6-macosx.

20 years agofile gdkpango-macosx.c was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkpango-macosx.c was initially added on branch gtk-2-6-macosx.

20 years agofile gdkpixmap-macosx.h was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkpixmap-macosx.h was initially added on branch gtk-2-6-macosx.

20 years agofile gdkprivate-macosx.h was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkprivate-macosx.h was initially added on branch gtk-2-6-macosx.

20 years agofile gdkscreen-macosx.h was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkscreen-macosx.h was initially added on branch gtk-2-6-macosx.

20 years agofile gdkscreen-macosx.m was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkscreen-macosx.m was initially added on branch gtk-2-6-macosx.

20 years agofile gdkwindow-macosx.h was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkwindow-macosx.h was initially added on branch gtk-2-6-macosx.

20 years agofile gdkwindow-macosx.m was initially added on branch gtk-2-6-macosx.
Hubert Figuiere [Tue, 14 Jun 2005 02:25:58 +0000 (02:25 +0000)]
file gdkwindow-macosx.m was initially added on branch gtk-2-6-macosx.

20 years agoRework the way in which rerooting of the path bar is done, implementing
Matthias Clasen [Mon, 13 Jun 2005 19:18:54 +0000 (19:18 +0000)]
Rework the way in which rerooting of the path bar is done, implementing

2005-06-13  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
path bar is done, implementing the following principles:
(#137289, patch by Benjamin Otte)

1. Re-root only if $HOME is an ancestor of the current path.

2. When re-rooting, make sure the Left arrow appears in the path
bar, so that you can navigate up from $HOME to /.  In that case,
make sure the Right arrow doesn't appear if the sub-hierarchy from
$HOME to the cwd fits in the window.

3. Make sure that hitting Alt-Up takes you always one folder up,
even when the path bar is re-rooted.

20 years agoTry harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
Matthias Clasen [Mon, 13 Jun 2005 19:09:06 +0000 (19:09 +0000)]
Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)

2005-06-13  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)

20 years agoDon't translate placeholders, to be consistent with other packages.
Theppitak Karoonboonyanan [Mon, 13 Jun 2005 16:43:22 +0000 (16:43 +0000)]
Don't translate placeholders, to be consistent with other packages.

2005-06-13  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* th.po: Don't translate placeholders, to be consistent with other
packages.

20 years agoUpdated Norwegian Bokmål translation. Same.
Terance Sola [Mon, 13 Jun 2005 16:02:25 +0000 (16:02 +0000)]
Updated Norwegian Bokmål translation. Same.

2005-06-13  Terance Sola  <terance@yse.net>

* nb.po: Updated Norwegian Bokmål translation.
* no.po: Same.

20 years agoFree the data of the row before overwriting it. (#307490, Kjartan Maraas)
Matthias Clasen [Mon, 13 Jun 2005 13:50:49 +0000 (13:50 +0000)]
Free the data of the row before overwriting it. (#307490, Kjartan Maraas)

2005-06-13  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkfilechooserbutton.c (model_update_current_folder):
Free the data of the row before overwriting it.  (#307490,
Kjartan Maraas)

20 years agoDon't leak the cairo context. Closes bug #307426.
Kjartan Maraas [Mon, 13 Jun 2005 07:57:02 +0000 (07:57 +0000)]
Don't leak the cairo context. Closes bug #307426.

2005-06-13  Kjartan Maraas  <kmaraas@gnome.org>

* gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
leak the cairo context. Closes bug #307426.

20 years agoAdd new functions.
Matthias Clasen [Mon, 13 Jun 2005 05:23:41 +0000 (05:23 +0000)]
Add new functions.

2005-06-13  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtk-sections.txt: Add new functions.

20 years agoMake invisible text work a bit better (#66194, patch by Jeroen
Matthias Clasen [Mon, 13 Jun 2005 05:15:10 +0000 (05:15 +0000)]
Make invisible text work a bit better (#66194, patch by Jeroen

2005-06-13  Matthias Clasen  <mclasen@redhat.com>

Make invisible text work a bit better (#66194, patch by
Jeroen Zwartepoorte)

* gtk/gtk.symbols:
* gtk/gtktextiter.[hc]: Add function to move by
visible lines.

* gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
Skip invisible text when moving by paragraphs.

* gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
Skip invisible lines here too.

20 years agoSome more details (#307384, Billy Biggs)
Matthias Clasen [Mon, 13 Jun 2005 04:23:20 +0000 (04:23 +0000)]
Some more details (#307384, Billy Biggs)

2005-06-13  Matthias Clasen  <mclasen@redhat.com>

* gtk/tmpl/gtkfontsel.sgml: Some more details (#307384, Billy
Biggs)

20 years agoDon't leak the format names. (#307190, Morten Welinder)
Matthias Clasen [Sun, 12 Jun 2005 21:01:21 +0000 (21:01 +0000)]
Don't leak the format names. (#307190, Morten Welinder)

2005-06-12  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkselection.c (gtk_target_list_add_image_targets):
Don't leak the format names.  (#307190, Morten Welinder)

20 years agoPlug a leak. Closes bug #307281.
Kjartan Maraas [Sun, 12 Jun 2005 16:24:10 +0000 (16:24 +0000)]
Plug a leak. Closes bug #307281.

2005-06-12  Kjartan Maraas  <kmaraas@gnome.org>

* gdk/x11/gdkasync.c: (send_event_handler): Plug
a leak. Closes bug #307281.

20 years agoUpdated Czech translation.
Miloslav Trmac [Sun, 12 Jun 2005 16:17:42 +0000 (16:17 +0000)]
Updated Czech translation.

2005-06-12  Miloslav Trmac  <mitr@volny.cz>

* cs.po: Updated Czech translation.

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Sun, 12 Jun 2005 13:53:15 +0000 (13:53 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agoUpdated Norwegian translation. Updated Norwegian translation.
Terance Sola [Sun, 12 Jun 2005 13:47:05 +0000 (13:47 +0000)]
Updated Norwegian translation. Updated Norwegian translation.

2005-06-12  Terance Sola  <terance@lyse.net>

* nb.po: Updated Norwegian translation.
* no.po: Updated Norwegian translation.

20 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Sun, 12 Jun 2005 10:20:41 +0000 (10:20 +0000)]
Updated Thai translation.

2005-06-12  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* th.po: Updated Thai translation.

20 years agoAllow localization of the format in which the year is displayed. (#135451,
Matthias Clasen [Sun, 12 Jun 2005 06:59:43 +0000 (06:59 +0000)]
Allow localization of the format in which the year is displayed. (#135451,

2005-06-12  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkcalendar.c (calendar_paint_header):
(gtk_calendar_size_request): Allow localization of the
format in which the year is displayed.  (#135451, Paisa
Seeluangsawat)

20 years agoTry to handle the situation that the borders are larger than the area we
Matthias Clasen [Sun, 12 Jun 2005 06:04:40 +0000 (06:04 +0000)]
Try to handle the situation that the borders are larger than the area we

2005-06-12  Matthias Clasen  <mclasen@redhat.com>

* pixbuf-render.c (theme_pixbuf_render): Try to
handle the situation that the borders are larger
than the area we are rendering.  (#169731,
Benjamin Otte)

20 years agoCleanup. (#169648, Fabricio Barros Cabral)
Matthias Clasen [Sun, 12 Jun 2005 05:32:25 +0000 (05:32 +0000)]
Cleanup. (#169648, Fabricio Barros Cabral)

2005-06-12  Matthias Clasen  <mclasen@redhat.com>

* gdk/*.h: Cleanup.  (#169648, Fabricio Barros Cabral)

20 years agoSmall doc additions.
Matthias Clasen [Sun, 12 Jun 2005 05:20:04 +0000 (05:20 +0000)]
Small doc additions.

2005-06-12  Matthias Clasen  <mclasen@redhat.com>

* gdk/gdkcairo.c: Small doc additions.

20 years agoCheck start_button_mask before starting a drag. (#149058, Andreas Volz)
Matthias Clasen [Sun, 12 Jun 2005 05:13:54 +0000 (05:13 +0000)]
Check start_button_mask before starting a drag. (#149058, Andreas Volz)

2005-06-12  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
Check start_button_mask before starting a drag.  (#149058,
Andreas Volz)

20 years agoSupport .hidden files. (#129170, Sayamindu Dasgupta, patch by Jan Arne
Matthias Clasen [Sun, 12 Jun 2005 04:48:16 +0000 (04:48 +0000)]
Support .hidden files. (#129170, Sayamindu Dasgupta, patch by Jan Arne

2005-06-12  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkfilesystemunix.c: Support .hidden files.  (#129170,
Sayamindu Dasgupta, patch by Jan Arne Petersen)

20 years agoUpdates.
Matthias Clasen [Sun, 12 Jun 2005 03:38:02 +0000 (03:38 +0000)]
Updates.

2005-06-11  Matthias Clasen  <mclasen@redhat.com>

* NEWS: Updates.

20 years agoUpdated Slovak translation.
Marcel Telka [Sat, 11 Jun 2005 20:16:28 +0000 (20:16 +0000)]
Updated Slovak translation.

2005-06-11  Marcel Telka  <marcel@telka.sk>

* sk.po: Updated Slovak translation.

20 years agoUpdated Simplified Chinese translation
Funda Wang [Sat, 11 Jun 2005 18:08:14 +0000 (18:08 +0000)]
Updated Simplified Chinese translation

20 years agoUpdated Spanish translation.
Francisco Javier F. Serrador [Sat, 11 Jun 2005 11:53:43 +0000 (11:53 +0000)]
Updated Spanish translation.

2005-06-11  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

* es.po: Updated Spanish translation.

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Sat, 11 Jun 2005 08:52:09 +0000 (08:52 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agoMore docs provided by Owen Taylor.
Matthias Clasen [Sat, 11 Jun 2005 05:51:55 +0000 (05:51 +0000)]
More docs provided by Owen Taylor.

2005-06-11  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
provided by Owen Taylor.

20 years agoAdd gtk_icon_view_get_visible_range
Matthias Clasen [Sat, 11 Jun 2005 05:17:17 +0000 (05:17 +0000)]
Add gtk_icon_view_get_visible_range

2005-06-11  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtk-sections.txt: Add gtk_icon_view_get_visible_range

20 years agoAdd a function to determine what parts of the model are visible. (#306726,
Matthias Clasen [Sat, 11 Jun 2005 05:15:10 +0000 (05:15 +0000)]
Add a function to determine what parts of the model are visible. (#306726,

2005-06-11  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtk.symbols:
* gtk/gtkiconview.h:
* gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
Add a function to determine what parts of the model are
visible.  (#306726, Jonathan Blandford)

20 years agoTreat backup files the same way as hidden files, to be closer to what
Matthias Clasen [Sat, 11 Jun 2005 04:38:43 +0000 (04:38 +0000)]
Treat backup files the same way as hidden files, to be closer to what

2005-06-11  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkfilesystemunix.c (create_file_info): Treat backup
files the same way as hidden files, to be closer to what
Nautilus does.  (#136196, Sean Middleditch)

20 years agoDon't modify strings returned from gettext().
Matthias Clasen [Sat, 11 Jun 2005 02:27:19 +0000 (02:27 +0000)]
Don't modify strings returned from gettext().

2005-06-10  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
Don't modify strings returned from gettext().

20 years agodon't use deprecated gdk_gc_unref function.
Manish Singh [Sat, 11 Jun 2005 02:06:56 +0000 (02:06 +0000)]
don't use deprecated gdk_gc_unref function.

Fri Jun 10 19:06:03 2005  Manish Singh  <yosh@gimp.org>

        * gtk/gtktextdisplay.c (render_para): don't use deprecated
        gdk_gc_unref function.

20 years agoAllow setting paragraph background. (#81045, Gustavo Carneiro, patch by
Matthias Clasen [Fri, 10 Jun 2005 20:05:08 +0000 (20:05 +0000)]
Allow setting paragraph background. (#81045, Gustavo Carneiro, patch by

2005-06-10  Matthias Clasen  <mclasen@redhat.com>

Allow setting paragraph background.  (#81045, Gustavo
Carneiro, patch by Jeroen Zwartepoorte)

* gtk/gtktextlayout.c (set_para_values): Propagate
pg_bg_color to the display struct.
(gtk_text_layout_free_line_display): Free it here.

* gtk/gtktextdisplay.c (render_para): If pg_bg_color
is set, draw a rectangle in that color behind
the paragraph.

* gtk/gtktexttag.c (gtk_text_tag_class_init): Add
paragraph-background, paragraph-background-gdk and
paragraph-background-set properties.
(set_pg_bg_color): A setter for paragraph-background.

* gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
pg_bg_color.

* gtk/gtktexttag.h (struct _GtkTextAttributes): Add
pg_bg_color.
(struct _GtkTextTag): Add pg_bg_color_set.

20 years agoDestroy the cairo surface when done with it. Plugs a fairly large leak in
Kjartan Maraas [Fri, 10 Jun 2005 19:53:47 +0000 (19:53 +0000)]
Destroy the cairo surface when done with it. Plugs a fairly large leak in

2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>

* gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
cairo surface when done with it. Plugs a fairly large leak in
some cases.
==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
826 blocks are definitely lost in loss record 25239 of 25250
Like this from nautilus.

20 years agoAdd gtk_action_get_accel_closure
Michael Natterer [Fri, 10 Jun 2005 19:12:32 +0000 (19:12 +0000)]
Add gtk_action_get_accel_closure

2005-06-10  Michael Natterer  <mitch@imendio.com>

* gtk/gtk-sections.txt: Add gtk_action_get_accel_closure

20 years agogtk/gtk.symbols new function to get an action's accel_closure (Fixes
Michael Natterer [Fri, 10 Jun 2005 19:11:31 +0000 (19:11 +0000)]
gtk/gtk.symbols new function to get an action's accel_closure (Fixes

2005-06-10  Michael Natterer  <mitch@imendio.com>

* gtk/gtk.symbols
* gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
to get an action's accel_closure (Fixes #141750 and #148106).

20 years agoUpdated Norwegian Nynorsk translation.
Åsmund Skjæveland [Fri, 10 Jun 2005 13:06:16 +0000 (13:06 +0000)]
Updated Norwegian Nynorsk translation.

2005-06-10  Åsmund Skjæveland  <aasmunds@fys.uio.no>

* nn.po: Updated Norwegian Nynorsk translation.

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Fri, 10 Jun 2005 08:21:49 +0000 (08:21 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agoGenerate N_() calls for translatable key names.
Matthias Clasen [Fri, 10 Jun 2005 06:41:04 +0000 (06:41 +0000)]
Generate N_() calls for translatable key names.

2005-06-10  Matthias Clasen  <mclasen@redhat.com>

* gdk/gen-keyname-table.pl: Generate N_() calls for
translatable key names.

* gdk/keynames.txt: Mark some key names as translatable.

* gdk/keyname-table.h: Regenerated.

* gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
some context to the msg ids for keyboard modifiers and
key names.
(_gtk_accel_label_class_get_accelerator_label): Try to
translate key names.  (#300224, Christian Rose)

20 years agoMerged from gtk-2-6:
Federico Mena Quintero [Fri, 10 Jun 2005 05:54:28 +0000 (05:54 +0000)]
Merged from gtk-2-6:

2005-06-10  Federico Mena Quintero  <federico@ximian.com>

Merged from gtk-2-6:

Fixes #162358:

* gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
immediately if we are in CREATE_FOLDER mode, so that we can fill
the entry with the newly-selected folder.
(gtk_file_chooser_default_set_property): Warn against turning on
multiple selection for CREATE_FOLDER mode, or about setting that
action while multiple selection is on.
(update_chooser_entry): Change the entry's contents as well if we
are in CREATE_FOLDER mode.  If nothing is selected, clear the
chooser entry.
(trap_activate_cb): Don't trap enter/space if modifiers are
pressed.  This lets one use Ctrl-space to toggle rows in multiple
selection mode.
(gtk_file_chooser_default_should_respond): Clean up the if-chain
mess of special cases by using an array to determine what to do.
Also, for the save-entry case in CREATE_FOLDER mode, actually fix
the bug where the file chooser would switch to an existing folder
rather than confirming with it, and create the folder ourselves.
(error_creating_folder_over_existing_file_dialog): New function.

* gtk/gtkfilechooserentry.c (check_completion_callback): Only
insert the common prefix if we are in an "open" mode.  Use a
helper function.
(append_common_prefix): New helper function; code moved over from
check_completion_callback().
(find_common_prefix): New helper function.
(gtk_file_chooser_entry_focus): Append the common prefix if the
user requests it explicitly.

20 years agoPass the correct size to realloc(). Fixes
Federico Mena Quintero [Fri, 10 Jun 2005 05:33:58 +0000 (05:33 +0000)]
Pass the correct size to realloc(). Fixes

2005-06-10  Federico Mena Quintero  <federico@ximian.com>

* xdgmime.c (xdg_mime_init_from_directory): Pass the correct size
to realloc().  Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3506.

20 years agoAdd GtkClipboardIamgeReceivedFunc
Matthias Clasen [Fri, 10 Jun 2005 05:03:41 +0000 (05:03 +0000)]
Add GtkClipboardIamgeReceivedFunc

2005-06-10  Matthias Clasen  <mclasen@redhat.com>

* gtk/tmpl/gtkclipboard.sgml:
* gtk/gtk-sections.txt: Add GtkClipboardIamgeReceivedFunc

20 years agoMore doc fixes.
Matthias Clasen [Fri, 10 Jun 2005 04:57:18 +0000 (04:57 +0000)]
More doc fixes.

20 years agoDoc fixes
Matthias Clasen [Fri, 10 Jun 2005 04:46:16 +0000 (04:46 +0000)]
Doc fixes

20 years ago2005-06-10 Matthias Clasen <mclasen@redhat.com>
Matthias Clasen [Fri, 10 Jun 2005 04:45:40 +0000 (04:45 +0000)]
2005-06-10  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
* gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
* gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
* gtk/gtkstock.c (gtk_stock_set_translate_func):
* gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
* gtk/gtkscrolledwindow.h:
* gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):

20 years agoDoc fixes.
Matthias Clasen [Fri, 10 Jun 2005 04:25:33 +0000 (04:25 +0000)]
Doc fixes.

2005-06-10  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkiconview.c (gtk_icon_view_set_margin):
* gtk/gtkicontheme.c (gtk_icon_info_load_icon):
* gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.

20 years agoAdditions.
Matthias Clasen [Fri, 10 Jun 2005 04:24:30 +0000 (04:24 +0000)]
Additions.

2005-06-10  Matthias Clasen  <mclasen@redhat.com>

* gtk/tmpl/gtkmenubar.sgml:
* gtk/tmpl/gtkimage.sgml:
* gtk/tmpl/gtkfontsel.sgml:
* gtk/tmpl/gtkbbox.sgml:
* gtk/tmpl/gtkadjustment.sgml:
* gtk/tmpl/gtkaccelgroup.sgml:
* gtk/tmpl/gtkaboutdialog.sgml: Additions.

20 years agoAdd some symbols.
Matthias Clasen [Fri, 10 Jun 2005 03:59:40 +0000 (03:59 +0000)]
Add some symbols.

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* gdk-pixbuf/gdk-pixbuf-sections.txt: Add some symbols.

20 years agoAdd a section for the Cairo functions.
Matthias Clasen [Fri, 10 Jun 2005 03:53:45 +0000 (03:53 +0000)]
Add a section for the Cairo functions.

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* gdk/gdk-sections.txt:
* gdk/tmpl/cairo_interaction.sgml:
* gdk/gdk-docs.sgml: Add a section for the Cairo functions.

20 years agoSmall markup fixes.
Matthias Clasen [Fri, 10 Jun 2005 03:35:30 +0000 (03:35 +0000)]
Small markup fixes.

20 years agoAdd docs. (#306212, Steve Chaplin, docs provided by Billy Biggs)
Matthias Clasen [Fri, 10 Jun 2005 03:17:00 +0000 (03:17 +0000)]
Add docs. (#306212, Steve Chaplin, docs provided by Billy Biggs)

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
(#306212, Steve Chaplin, docs provided by Billy Biggs)

20 years agoDon't declare errno, including errno.h is enough. (#304164, Joerg
Matthias Clasen [Thu, 9 Jun 2005 19:54:06 +0000 (19:54 +0000)]
Don't declare errno, including errno.h is enough. (#304164, Joerg

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* xdgmimemagic.c: Don't declare errno, including errno.h
is enough.  (#304164, Joerg Sonnenberger)

20 years agoSmall cleanup. (#305539, Paolo Borelli)
Matthias Clasen [Thu, 9 Jun 2005 18:36:58 +0000 (18:36 +0000)]
Small cleanup. (#305539, Paolo Borelli)

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
cleanup.  (#305539, Paolo Borelli)

20 years agoadded cairo to list of $GTK_PACKAGES.
Rodrigo Moya [Thu, 9 Jun 2005 17:15:13 +0000 (17:15 +0000)]
added cairo to list of $GTK_PACKAGES.

2005-06-09  Rodrigo Moya <rodrigo@novell.com>

* configure.in: added cairo to list of $GTK_PACKAGES.

20 years agoUpdate the user time on the window when a drop happens. (#169364,
Matthias Clasen [Thu, 9 Jun 2005 17:13:58 +0000 (17:13 +0000)]
Update the user time on the window when a drop happens. (#169364,

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
the user time on the window when a drop happens.  (#169364, Alexander
Hunziker, patch by Elijah Newren)

20 years agoSmall markup fixes.
Matthias Clasen [Thu, 9 Jun 2005 16:40:42 +0000 (16:40 +0000)]
Small markup fixes.

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkwindow-x11.c: Small markup fixes.

20 years agoUpdates
Matthias Clasen [Thu, 9 Jun 2005 06:08:25 +0000 (06:08 +0000)]
Updates

20 years agoNew function to scroll to a path. (#306838, Jonathan Blandford)
Matthias Clasen [Thu, 9 Jun 2005 06:07:57 +0000 (06:07 +0000)]
New function to scroll to a path. (#306838, Jonathan Blandford)

2005-06-09  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtk.symbols:
* gtk/gtkiconview.h:
* gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
to scroll to a path.  (#306838, Jonathan Blandford)

20 years agoCheck for overflow. (#306394, Morten Welinder)
Matthias Clasen [Wed, 8 Jun 2005 20:57:16 +0000 (20:57 +0000)]
Check for overflow. (#306394, Morten Welinder)

2005-06-08  Matthias Clasen  <mclasen@redhat.com>

* io-pnm.c (pnm_read_next_value): Check for overflow.
(#306394, Morten Welinder)

20 years agoScroll to the item. (#306839, Jonathan Blandford)
Matthias Clasen [Wed, 8 Jun 2005 20:47:11 +0000 (20:47 +0000)]
Scroll to the item. (#306839, Jonathan Blandford)

2005-06-08  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
item.  (#306839, Jonathan Blandford)

20 years agoCheck for negative before appending the index, to avoid double error
Matthias Clasen [Wed, 8 Jun 2005 20:25:21 +0000 (20:25 +0000)]
Check for negative before appending the index, to avoid double error

2005-06-08  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
negative before appending the index, to avoid double error
message.  (#306393, Morten Welinder)

20 years agoDon't crash if search_window is NULL. (#304914, Victor Osadci, testcase by
Matthias Clasen [Wed, 8 Jun 2005 20:14:03 +0000 (20:14 +0000)]
Don't crash if search_window is NULL. (#304914, Victor Osadci, testcase by

2005-06-08  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
Don't crash if search_window is NULL.  (#304914, Victor Osadci,
testcase by Olaf Vitters)

20 years agoMake the file property readable. (#170674, Lorenzo Gil Sanchez)
Matthias Clasen [Wed, 8 Jun 2005 17:38:25 +0000 (17:38 +0000)]
Make the file property readable. (#170674, Lorenzo Gil Sanchez)

2005-06-08  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkimage.c: Make the file property readable.
(#170674, Lorenzo Gil Sanchez)

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Wed, 8 Jun 2005 09:56:17 +0000 (09:56 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agoTranslation updated by Ivar Smolin.
Priit Laes [Wed, 8 Jun 2005 08:54:27 +0000 (08:54 +0000)]
Translation updated by Ivar Smolin.

2005-06-08  Priit Laes  <plaes@cvs.gnome.org>

* et.po: Translation updated by Ivar Smolin.

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Wed, 8 Jun 2005 08:49:19 +0000 (08:49 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.